package com.ztf.employee.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ztf.common.utils.PageUtils;
import com.ztf.common.utils.Query;

import com.ztf.employee.dao.OvertimeDao;
import com.ztf.employee.entity.OvertimeEntity;
import com.ztf.employee.service.OvertimeService;


@Service("overtimeService")
public class OvertimeServiceImpl extends ServiceImpl<OvertimeDao, OvertimeEntity> implements OvertimeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OvertimeEntity> page = this.page(
                new Query<OvertimeEntity>().getPage(params),
                new QueryWrapper<OvertimeEntity>()
        );

        return new PageUtils(page);
    }

}